import request from '@/utils/request'

// 查询分享与标签关联列表
export function listShareTagRelation(query) {
  return request({
    url: '/backend/shareTagRelation/list',
    method: 'get',
    params: query
  })
}

// 查询分享与标签关联详细
export function getShareTagRelation(id) {
  return request({
    url: '/backend/shareTagRelation/' + id,
    method: 'get'
  })
}

// 新增分享与标签关联
export function addShareTagRelation(data) {
  return request({
    url: '/backend/shareTagRelation',
    method: 'post',
    data: data
  })
}

// 修改分享与标签关联
export function updateShareTagRelation(data) {
  return request({
    url: '/backend/shareTagRelation',
    method: 'put',
    data: data
  })
}

// 删除分享与标签关联
export function delShareTagRelation(id) {
  return request({
    url: '/backend/shareTagRelation/' + id,
    method: 'delete'
  })
}
